<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增机械进场')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-demo-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">进场时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="approachTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">劳务公司：</label>
            <div class="col-sm-8">
                <input name="labourComp" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">机械类型名称：</label>
            <div class="col-sm-8">

                <select name="mechanicalTypeId" id="mechanicalTypeId" class="form-control">

                    <option value="">机械类型名称</option>
                    <option th:each="pro:${jxtypeinfos}" th:value="${pro.id }"
                            th:text="${pro.typeName }"></option>

                </select>

            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌：</label>
            <div class="col-sm-8">
                <input name="brand" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">机械型号：</label>
            <div class="col-sm-8">
                <input name="mechanicalModel" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">开始码表：</label>
            <div class="col-sm-8">
                <input name="startCodeTable" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">车牌：</label>
            <div class="col-sm-8">
                <input name="licensePlate" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">司机姓名：</label>
            <div class="col-sm-8">
                <input name="driverName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机号码：</label>
            <div class="col-sm-8">
                <input name="phoneNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">工作类型id：</label>
            <div class="col-sm-8">
                <select name="typeWorkId" id="typeWorkId" class="form-control">

                    <option th:each="pro:${worktypeinfos}" th:value="${pro.id }"
                            th:text="${pro.workType }"></option>

                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">车架号：</label>
            <div class="col-sm-8">
                <input name="frameNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">挖机编号：</label>
            <div class="col-sm-8">
                <input name="excavatorNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">项目id：</label>
            <div class="col-sm-8">
                <!--<input name="proId" class="form-control" type="text">-->

                <select name="proId" id="proId" class="form-control">

                    <option th:each="pro:${projectinfos}" th:value="${pro.id }"
                            th:text="${pro.proName }"></option>

                </select>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "demo"
    $("#form-demo-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-demo-add').serialize());
        }
    }

    $("input[name='approachTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>